package com.njtoyo.taxi.admin.rest.wrapper.platform.sensitive;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njtoyo.taxi.admin.mapper.secondary.enums.SystemSensitiveOperationObjectType;
import com.njtoyo.taxi.admin.mapper.secondary.enums.SystemSensitiveOperationVerifyMethod;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Objects;

@Data
public class SensitiveOperationWrapper extends Page<SensitiveOperationWrapper> {
    public SensitiveOperationWrapper(Long current, Long size) {
        super(Objects.isNull(current) ? 1 : current, Objects.isNull(size) ? 15 : size);
    }

    @ApiModelProperty(value = "是否验证开启")
    private Boolean isVerifyOpen;

    @ApiModelProperty(value = "验证对象")
    private SystemSensitiveOperationObjectType verifyObjectType;

    @ApiModelProperty(value = "验证方法。")
    private SystemSensitiveOperationVerifyMethod verifyMethod;

}
